/*
 * 统计导出
 * fh
 *
 */
import request from '@/utils/request'

/**
 * 人员结构
 * @param {*} data
 */
export function hrmEmployeeManpowerAPI(data) {
  return request({
    url: 'hrmSalaryReport/manpowerNum',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 人员结构
 * @param {*} data
 */
export function hrmEmployeePersonalStructureAPI(data) {
  return request({
    url: 'hrmSalaryReport/queryEmployeeNum',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 人均工资
 * @param {*} data
 */
export function hrmEmployeePerIncomeAPI(data) {
  return request({
    url: 'hrmSalaryReport/queryPerIncome',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 薪酬
 * @param {*} data
 */
export function hrmEmployeeSalaryAPI(data) {
  return request({
    url: 'hrmSalaryReport/querySalary',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 内退、不在岗员工薪酬统计
 * @param {*} data
 */
export function hrmEmployeeNoWorkSalaryAPI(data) {
  return request({
    url: 'hrmSalaryReport/queryNoWorkSalary',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 离、退休员工薪酬统计
 * @param {*} data
 */
export function hrmEmployeeRetireSalaryAPI(data) {
  return request({
    url: 'hrmSalaryReport/queryRetireSalary',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}


/**
 *  人力资源指标年报统计报表导出
 * @param {*} data
 */
export function hrmHumanResourcesExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/humanResourcesExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}



/**
 * 从业人员人数及人员结构
 * @param {*} data
 */
export function hrmEmployeeStructureExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/employeeStructureExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 在岗职工人均工资统计报表导出
 * @param {*} data
 */
export function hrmPerCapitaSalaryExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/perCapitaSalaryExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}



/**
 * 离、退休员工薪酬统计报表导出
 * @param {*} data
 */
export function hrmRetirementExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/retirementExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}



/**
 * 内退、不在岗员工薪酬统计
 * @param {*} data
 */
export function hrmNotOnDutyExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/notOnDutyExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}



/**
 * 从业人员薪酬统计报表导出
 * @param {*} data
 */
export function hrmExcelSalaryExportAPI(data) {
  return request({
    url: 'hrmSalaryReport/excelSalaryExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
